import axiosInstance from "../utils/axiosInstances";

//获取菜单列表
export function getMenu() {
  return axiosInstance.get("/system/menu/list");
};

//获取用户信息
export function getUserProfile() {
  return axiosInstance.get("/system/user/profile");
};
export interface userInfo { 
  username: string;
  password: string;
}


//用户登录
export const login = (data: userInfo) => {
  return axiosInstance.post("/auth/login", data);
};

